package com.fruit.controller.wap.view;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import com.fruit.controller.base.BaseController;

@Controller
@RequestMapping(value = "/wap/view")
public class ViewController extends BaseController {

	// 关于我们
		@RequestMapping(value = "/about", method = { RequestMethod.POST, RequestMethod.GET })
		public ModelAndView about(HttpServletRequest request, HttpSession session) {
			ModelAndView view = this.getModelAndView();
			view.setViewName("about");
			return view;
		}
		
		// 用户注册协议
		@RequestMapping(value = "/userPact", method = { RequestMethod.POST, RequestMethod.GET })
		public ModelAndView userPact(HttpServletRequest request, HttpSession session) {
			ModelAndView view = this.getModelAndView();
			view.setViewName("userpact");
			return view;
		}
		
		// 攻略
		@RequestMapping(value = "/raiders", method = { RequestMethod.POST, RequestMethod.GET })
		public ModelAndView raiders(HttpServletRequest request, HttpSession session) {
			ModelAndView view = this.getModelAndView();
			view.setViewName("skill");
			return view;
		}
}
